<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::group(
    ['namespace' => 'Common'],
    function () {
        Route::post('common/update/image', 'UpdateController@image')->name('common.update.image');

        Route::get('common/select/unit', 'SelectController@unit')->name('common.select.unit');

        Route::get('common/select/customer', 'SelectController@customer')->name('common.select.customer');

        Route::get('common/select/dictionaries/{code}', 'SelectController@dictionaries')->name('common.select.dictionaries');
    });
